package com.lyn.auxiliarytool.contract.manager;

import android.content.Context;

import java.io.File;

/**
 * @author longyn 2022/11/30
 * @version 1.0.0
 */
public class PluginFileManager {

    public static class PluginManagerTypeClass {
        private static final PluginFileManager in = new PluginFileManager();
    }

    public static PluginFileManager getInstance(){
        return PluginManagerTypeClass.in;
    }

    private String path;

    public void init(Context context){
        path = context.getFilesDir().getAbsolutePath().concat("/plugin");
        File file = new File(path);
        if (!file.exists()){
            file.mkdirs();
        }
    }

    public String getPath() {
        return path;
    }


}
